package com.infore.statisticsAndAlarm.entity;

import java.io.Serializable;
import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;


/**
 * The persistent class for the MONTH_DATA database table.
 * 
 */
@Entity
@Table(name="MONTH_DATA")
@NamedQuery(name="MonthData.findAll", query="SELECT m FROM MonthData m")
public class MonthData implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="MONTH_ID")
	@GeneratedValue(generator = "uuidGenerator")
	@GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
	private String monthId;

	@Column(name="DATA_FLAG")
	private String dataFlag;

	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM")
	@JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
	private Date dataTime;

	@Column(name="DATA_VALUE_AVG")
	private String dataValueAvg;

	@Column(name="DATA_VALUE_MAX")
	private String dataValueMax;

	@Column(name="DATA_VALUE_MIN")
	private String dataValueMin;

	@Column(name="FACTOR_CODE")
	private String factorCode;

	@Column(name="REAL_NUM")
	private String realNum;

	@Column(name="STANDARD_NUM")
	private String standardNum;

	@Column(name="STATION_CODE")
	private String stationCode;

	@Column(name="WATER_QUALITY")
	private String waterQuality;

	public MonthData() {
	}

	public String getMonthId() {
		return this.monthId;
	}

	public void setMonthId(String monthId) {
		this.monthId = monthId;
	}

	public String getDataFlag() {
		return this.dataFlag;
	}

	public void setDataFlag(String dataFlag) {
		this.dataFlag = dataFlag;
	}

	public Date getDataTime() {
		return this.dataTime;
	}

	public void setDataTime(Date dataTime) {
		this.dataTime = dataTime;
	}

	public String getDataValueAvg() {
		return this.dataValueAvg;
	}

	public void setDataValueAvg(String dataValueAvg) {
		this.dataValueAvg = dataValueAvg;
	}

	public String getDataValueMax() {
		return this.dataValueMax;
	}

	public void setDataValueMax(String dataValueMax) {
		this.dataValueMax = dataValueMax;
	}

	public String getDataValueMin() {
		return this.dataValueMin;
	}

	public void setDataValueMin(String dataValueMin) {
		this.dataValueMin = dataValueMin;
	}

	public String getFactorCode() {
		return this.factorCode;
	}

	public void setFactorCode(String factorCode) {
		this.factorCode = factorCode;
	}

	public String getRealNum() {
		return this.realNum;
	}

	public void setRealNum(String realNum) {
		this.realNum = realNum;
	}

	public String getStandardNum() {
		return this.standardNum;
	}

	public void setStandardNum(String standardNum) {
		this.standardNum = standardNum;
	}

	public String getStationCode() {
		return this.stationCode;
	}

	public void setStationCode(String stationCode) {
		this.stationCode = stationCode;
	}

	public String getWaterQuality() {
		return this.waterQuality;
	}

	public void setWaterQuality(String waterQuality) {
		this.waterQuality = waterQuality;
	}

}